module.exports = {
    //mode: 'universal',
    mode: 'spa',
    /*
     ** Headers of the page
     */
    head: {
        title: '农业标准化种植科技服务平台',
        //title: process.env.npm_package_name || '蜜袋互助',
        meta: [
            { charset: 'utf-8' },
            { name: 'viewport', content: 'width=1200, user-scalable=no, target-densitydpi=device-dpi' },
            { "http-equiv": "x-dns-prefetch-control", content: "on" },
            { hid: 'description', name: 'description', content: process.env.npm_package_description || '' }
        ],
        link: [
            { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
        ]
    },
    /*
     ** Customize the progress-bar color
     */
    loading: { color: '#fff' },
    /*
     ** Global CSS
     */
    css: [
        'swiper/css/swiper.css'
    ],
    /*
     ** Plugins to load before mounting the App
     */
    plugins: [
        { src: '~plugins/main.js', ssr: true }
    ],
    /*
     ** Nuxt.js dev-modules
     */
    buildModules: [],
    /*
     ** Nuxt.js modules
     */
    modules: [
        '@gauseen/nuxt-proxy',
    ],
    /*
     ** Build configuration
     */
    build: {
        /* 
         ** You can extend webpack config here
         */
        extend(config, ctx) {}
    },
    router: {
        //base:"./" //此为根目录，如果有具体目录需求按实际情况写
    },
    proxyTable: {
        '/doc': {
            target: 'http://localhost:2400',
            ws: false, // 是否支持websocket
            pathRewrite: { '^/doc': '' }
        }
    },
}